checkout: also chmod in the user checkout case
authorJonathan Lebon <jlebon@redhat.com>
Fri, 2 Jun 2017 14:09:23 +0000 (10:09 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 2 Jun 2017 17:46:16 +0000 (17:46 +0000)
commita32c6d2c70c82b583e8ee7c2a2f4e00b0d888fe5
tree042550cc67e2f8b5447ed1ce9207c33dd7272391
parent3ec2b5773ea1553a70c362c25574978b7bbc932a
checkout: also chmod in the user checkout case

When falling back to copying, we previously would only chmod checked out
files in the non-user-checkout mode. Fix this by always doing chmod.
The file_mode was being prepared but never actually applied.

Add a basic test in the archive-z2 --> usermode checkout case in which
we're guaranteed to always fall back to copy mode.

Closes: #633
Closes: #903
Approved by: cgwalters
src/libostree/ostree-repo-checkout.c
tests/basic-test.sh
tests/libtest-core.sh
tests/libtest.sh